import { validateIdcard } from '@/utils/validate.js'

export default {
  //表单
  TemplateGeneration: [
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'sceneName',
          label: '场景名称:',
          span: 11,
          placeholder: '请输入场景名称',
          rules: [{ required: true, message: '请输入场景名称', trigger: 'blur' }],
        },
        {
          type: 'select',
          prop: 'sceneLevel',
          label: '场景等级:',
          span: 11,
          placeholder: '请选择场景等级',
          options: [
            {
              value: '初级',
              label: '初级',
            },
            {
              value: '中级',
              label: '中级',
            },
            {
              value: '高级',
              label: '高级',
            },
          ],
          rules: [{ required: true, message: '请选择场景等级', trigger: 'change' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'select',
          prop: 'sceneType',
          label: '场景类型:',
          span: 11,
          placeholder: '请选择场景类型',
          options: [
            {
              value: 'H辐射',
              label: 'H辐射',
            },
            {
              value: 'SW污染',
              label: 'SW污染',
            },
            {
              value: 'HX污染',
              label: 'HX污染',
            },
          ],
          rules: [{ required: true, message: '请选择场景类型', trigger: 'change' }],
        },
        {
          type: 'select',
          prop: 'designDepartment',
          label: '涉及组室:',
          span: 11,
          placeholder: '请选择涉及组室',
          options: [],
          rules: [{ required: true, message: '请选择涉及组室', trigger: 'change' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'time',
          prop: 'duration',
          label: '时长:',
          span: 11,
          placeholder: '请输入时长',
          format: 'HH:mm:ss',
          valueFormat: 'HH:mm:ss',
          rules: [{ required: true, message: '请输入时长', trigger: 'blur' }],
        },

        {
          type: 'input',
          prop: 'keyEventNodes',
          label: '关键事件节点:',
          span: 11,
          placeholder: '请输入关键事件节点',
          rules: [{ required: true, message: '请输入关键事件节点', trigger: 'blur' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'coreTrainingObjective',
          label: '核心训练目标:',
          span: 11,
          placeholder: '请输入核心训练目标',
          rules: [{ required: true, message: '请输入核心训练目标', trigger: 'blur' }],
        },
        {
          type: 'date',
          prop: 'lastUsedTime',
          label: '上次使用时间:',
          span: 11,
          placeholder: '请输入上次使用时间',
          format: 'YYYY-MM-DD',
          valueFormat: 'YYYY-MM-DD',
          rules: [{ required: true, message: '请输入上次使用时间', trigger: 'blur' }],
        },
      ],
    },
  ],

  //表单数据
  TemplateGenerationdata: {
    sceneName: '',
    sceneLevel: '',
    sceneType: '',
    designDepartment: '',
    duration: '',
    keyEventNodes: '',
    coreTrainingObjective: '',
    lastUsedTime: '',
  },
}
